package cn.wolfcode.wolf2w.job.task;

import cn.wolfcode.wolf2w.common.core.constant.SecurityConstants;
import cn.wolfcode.wolf2w.strategy.api.RemoteStrategyConditionService;
import cn.wolfcode.wolf2w.strategy.api.RemoteStrategyRankService;
import cn.wolfcode.wolf2w.strategy.api.domain.StrategyRank;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("strategyConditionTask")
public class strategyConditionTask {
    @Autowired
    private RemoteStrategyConditionService remoteStrategyConditionService;

    public void strategyRankHandle() {
        System.out.println("sssddd");

        remoteStrategyConditionService.strategyConditionHandle(StrategyRank.TYPE_ABROAD, SecurityConstants.INNER);
        remoteStrategyConditionService.strategyConditionHandle(StrategyRank.TYPE_CHINA, SecurityConstants.INNER);
        remoteStrategyConditionService.strategyConditionHandle(StrategyRank.TYPE_HOT, SecurityConstants.INNER);
    }

    @Autowired
    public void strategyRankDelete(){
        System.out.println("已删除今日攻略导航数据");
        remoteStrategyConditionService.strategyConditionDelete(SecurityConstants.INNER);
    }
}
